<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<!-- .breadcrumb -->
	</div>
	<div class="page-content">
        
        <div class="page-header">
			<h1>认证用户银行卡信息</h1>
		</div>
		<div class="row">
			 <div class="col-xs-12">
				<!-- PAGE CONTENT BEGINS -->
				    	<table class="table table-striped table-bordered table-hover">
				    		<?php
				    			if(!empty($result) && count($result)>0){
				    				foreach($result as $val){	
				    			
				    		?>
                            	<tr>
                                	<td style="width: 7%;" class="text_rt">
                                    	<p>姓名： </p>
                                    </td>
									<td style="width: 18%;">
										<p><?php echo $val->card_name; ?></p>
                                    </td>
                                    <td style="width: 7%;" class="text_rt">
                                    	<p>身份证号码：</p>
                                    </td>
                                    <td style="width: 18%;">
                                    	<p><?php echo $val->card_name; ?></p>	
                                    </td>
                                    <td style="width: 7%;" class="text_rt">
                                    	<p>性别:</p>
                                    </td>
                                    <td style="width: 18%;" >
                                    	<p><?php echo $val->sex; ?></p>	
                                    </td>
                                    <td style="width: 7%;" rowspan="3" class="align_middle">头像：</td>    
                                    <td style="width: 18%;" rowspan="3" class="align_middle">
                                    	<div style="width: 50%; margin: auto;">
                                    		<img style="width: 100%;" src="<?php echo $val->headpic; ?>" />
                                    	</div>             
                                    </td>
                                </tr>
                                <tr>
									<td class="text_rt">
                                    	<p>手机号码：</p>
                                    </td>
                                    <td>
                                    	<p><?php echo $val->login_name; ?></p>	
                                    </td>
                                    <td class="text_rt">
                                    	<p>昵称：</p>
                                    </td>
                                    <td>
                                    	<p><?php echo $val->user_name; ?></p>	
                                    </td>
                                    <td class="text_rt">
                                    	<p>
                                            	角色状态:
                                        </p>
                                    </td>
                                    <td>
                                    	<p><?php 
											if($val->role_type == 1){
		                                		echo "客户";
		                                	}elseif($val->role_type == 2){
		                                		echo "机主";
		                                	}
										 ?></p>
                                    </td>

                                </tr>
                                <tr>
									<td class="text_rt">
                                    	<p>行业:</p>
                                    </td>
                                    <td >
										<p><?php echo $val->work_type; ?></p>
                                    </td>
                                    <td class="text_rt">
                                    	<p>状态：</p>
                                    </td>
                                    <td>
                                    	<p><?php 
                                	if($val->status == 0){
                                		echo "未实名认证";
                                	}elseif($val->status == 1){
                                		echo "已提交身份信息，认证中";
                                	}elseif($val->status == 2){
                                		echo "实名认证失败";
                                	}elseif($val->status == 3){
                                		echo "实名认证通过";
                                	}
                                	?></p>
                                    </td>
                                    <td class="text_rt">
                                    	<p>注册时间：</p>
                                    </td>
                                    <td>
                                    	<p><?php echo $val->create_time; ?></p>
                                    </td>
                                </tr>
                                <tr>
									<td class="text_rt">
                                    	<p>银行卡号:</p>
                                    </td>
                                    <td >
										<p><?php echo $val->bank_account; ?></p>
                                    </td>
                                    <td class="text_rt">
                                    	<p>开户银行：</p>
                                    </td>
                                    <td>
                                    	<p><?php echo $val->bank_name; ?></p>
                                    </td>
                                    <td class="text_rt">
                                    	<p>开户城市：</p>
                                    </td>
                                    <td>
                                    	<p><?php echo $val->bank_city; ?></p>
                                    </td>
                                    <td class="text_rt">
                                    	<p>开户人：</p>
                                    </td>
                                    <td>
                                    	<p><?php echo $val->bank_account_name; ?></p>
                                    </td>
                                </tr>
                                <tr>
                                	<td class="text_rt"><p>身份证正面：</p></td>
                                    <td colspan="3">
                                    	<div style="width:50%; margin: auto;">
                                    		<img style="width: 100%;" src="<?php echo $val->cardpic_front; ?>" />
                                    	</div>
                                   </td>
                                   <td class="text_rt"><p>身份证反面：</p></td>
                                    <td colspan="3">
                                    	<div style="width:50%; margin: auto;">
                                    		<img style="width: 100%;" src="<?php echo $val->cardpic_back; ?>" />
                                    	</div>
                                    </td>
                                </tr>
                             <?php
                             	}}	
                             ?>
                            </table>
		            <div class="clearfix form-actions">
						<div class="col-md-offset-3 col-md-9">
							<a class="btn btn-info" href="<?php echo base_url()."admin/user/card_ok/".$result[0]->id; ?>">
								<i class="icon-ok bigger-110"></i>
								认证通过
							</a>
							
							&nbsp; &nbsp; &nbsp;
							<a class="btn btn-danger" href="<?php echo base_url()."admin/user/card_no/".$result[0]->id; ?>">
								<i class="icon-ok bigger-110"></i>
								认证失败
							</a>

							&nbsp; &nbsp; &nbsp;
							<a class="btn" href="<?php echo base_url()."admin/user/card"?>">
								<i class="icon-undo bigger-110"></i>
								取消认证
							</a>
						</div>
					</div>
			</div>
		</div><!-- /.row -->
	</div><!-- /.page-content -->
</div><!-- /.main-content -->
				<script type="text/javascript">
	$("#usrform").validation();
	//保存
	$("#btnSubmit").on('click',function(event){
	  // 2.最后要调用 valid()方法。
	  if ($("#usrform").valid()==false){
	    return false;
	  }
	});
	</script>